/**
 * @author Maximilian Csuk
 * @author Konrad Paumann
 * @author Bernhard Denner
 */

public class Addition extends BinOp {
	
	public Addition(Node leftChild, Node rightChild ) {
		super(leftChild, rightChild);
	}
	/**
	 * Returns the result of the evaluation with the left and right child
	 */
	public Number eval() {
		Number left = super.getLeftChild().eval();
		Number right = super.getRightChild().eval();
		return left.add(right);
	}
}
